const {
	defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	publicPath: "./",
	assetsDir: "static",
	parallel: false,
	devServer: {
		host: '0.0.0.0', //是否让同一局域网下的其他人访问这个项目
		proxy: {
			"/api": {
				target: "https://www.mxnzp.com",
				changeOrigin: true,
				ws: false,
				secure: true,
				pathRewrite: {
					"∧/api": ""
				}
			},
			"/freeweather": {
				target: "https://way.jd.com/he/",
				changeOrigin: true,
				ws: false,
				secure: true,
				pathRewrite: {
					"∧/freeweather": ""
				}
			},
		}
	}
})
